﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MiApp {
    /// <summary>
    /// Lógica de interacción para Binding.xaml
    /// </summary>
    public partial class Binding : Window {
        public Binding() {
            InitializeComponent();
           
        }

        private void Button_Click(object sender, RoutedEventArgs e) {
            MessageBox.Show(((Cuenta)this.Resources["ho"]).Usuario.ToString() + "  " + ((Cuenta)this.Resources["ho"]).monto);

            MiColeccion coll = (MiColeccion)this.Resources["mc"];
            coll[0] = "asdfasasdf";
        }

        private void TextBox_Error(object sender, ValidationErrorEventArgs e) {
            MessageBox.Show("Ocurrió un Error!!!");


        }
    }
}
